//
//  DSUnitExercise.m
//  DSJY
//
//  Created by 冯华强 on 16/10/19.
//  Copyright © 2016年 dsjy. All rights reserved.
//  单元练习点击获取分数、上下单元的对象

#import "DSUnitExercise.h"
#import "MTConst.h"
#import "NSString+Extension.h"

@implementation DSUnitExercise

- (NSString *)jsonpathString
{
    if (_jsonpathString == nil && self.jsonpath) {
        _jsonpathString = [[DSDomain stringByAppendingString:[self.jsonpath trim]] specialFormat];
    }
    return _jsonpathString;
}

- (DSUnitExerciseType)exerciseType
{
    return [self.isstory isEqualToString:@"0"] ? DSUnitExerciseTypeNormal : DSUnitExerciseTypeStory;
}

@end
